home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
Borland
/
Borland C++ V5.02
/
CLASSSRC.PAK
/
EXBASE.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-06
|
862b
|
53 lines
//----------------------------------------------------------------------------
// Borland WinSys Library
// Copyright (c) 1994, 1997 by Borland International, All rights
//
//$Revision: 5.6 $
//
// TXBase class implementation.
//----------------------------------------------------------------------------
#include <winsys/pch.h>
#include <winsys/exbase.h>
int TXBase::InstanceCount = 0;
TXBase::TXBase(const string& msg)
:
xmsg(msg)
{
InstanceCount++;
}
TXBase::TXBase(const TXBase& src)
:
xmsg(src)
{
InstanceCount++;
}
TXBase::~TXBase()
{
InstanceCount--;
}
TXBase*
TXBase::Clone()
{
return new TXBase(*this);
}
void
TXBase::Throw()
{
THROW( *this );
}
//
// Construct a TXBase exception from scratch, and throw it
//
void
TXBase::Raise(const string& msg)
{
TXBase(msg).Throw();
}